//
//  YYXThreeViewController.m
//  33-严雅兴
//
//  Created by YanYanxing on 2017/2/23.
//  Copyright © 2017年 yanyaxing. All rights reserved.
//

#import "YYXThreeViewController.h"

@interface YYXThreeViewController ()

@end

@implementation YYXThreeViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    
    //设置视图背景--这种方式比较高性能
    NSString *path=[[NSBundle mainBundle]pathForResource:@"image03" ofType:@"jpg"];
    UIImage *image = [UIImage imageWithContentsOfFile:path];
    self.view.layer.contents = (id)image.CGImage;
    
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
